package com.iwhalecloud.citybrain.flow.platform.manager.common.client;

import lombok.Data;

import java.util.HashSet;
import java.util.Set;

/**
 * @author lilh
 * @date 2019-07-10 09:36
 */
@Data
public class HttpTaskRollbackDto extends HttpCommandDto {
    private static final long serialVersionUID = -2002997014882166266L;

    /**
     * 任务编号
     */
    private String workItemId;

    /**
     * 操作人信息
     */
    private String participantId;

    /** 操作人名称 */
    private String participantName;

    /** 类型，仅支持STA/USR,表示操作人 */
    private String participantType;

    /** 需要回退到的目标节点编码 */
    private Set<String> targetActivities = new HashSet<>();

    /** 回退原因 */
    private String comment;

    public HttpTaskRollbackDto() {
        this.setCommandCode("taskRollback");
    }

    public String getParticipantId() {
        return participantId;
    }

    public void setParticipantId(String participantId) {
        this.participantId = participantId;
    }

    public String getParticipantName() {
        return participantName;
    }

    public void setParticipantName(String participantName) {
        this.participantName = participantName;
    }

    public String getParticipantType() {
        return participantType;
    }

    public void setParticipantType(String participantType) {
        this.participantType = participantType;
    }

    public Set<String> getTargetActivities() {
        return targetActivities;
    }

    public void setTargetActivities(Set<String> targetActivities) {
        this.targetActivities = targetActivities;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }
}
